/* 搜索容器 */
.search-container {
  position: relative; /* 为了定位悬浮框 */
  width: 60%;
  margin: 0 auto;
}

.search-bar {
  position: relative;
  max-width: 400px; /* 限制最大宽度 */
  height: 37px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: space-between; /* 让输入框和按钮之间有间距 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 内外阴影效果 */
  padding-left: 20px; /* 输入框左侧内边距 */
  margin: 0 auto; /* 在容器中水平居中 */
}

.search-bar input {
  height: 47px;
  border: none;
  background: transparent;
  font-size: 16px;
  padding: 0 10px;
  border-radius: 10px; 
  outline: none;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

.search-bar button {
  position: absolute;
  right: 10px;
  height: 30px;
  width: 30px;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.1s ease;
  border-radius: 50%; /* 确保按钮是圆形 */
}

.search-bar button:hover {
  background-color: #d3d3d3; /* 鼠标悬停时的按钮背景色 */
}

.search-bar button svg {
  width: 20px;
  height: 20px;
  fill: white !important;  /* 强制应用白色填充 */
  transition: fill 0.1s ease;
}

.search-bar button:hover svg {
  fill: #b8b8b8 !important; /* 悬停时改变图标颜色 */
}

/* 悬浮框 */
.search-results-container {
  position: absolute;
  top: 100%; 
  left: -25%;
  width: 150%;
  height: 450px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: 500px;
  overflow-y: auto;
  z-index: 10;
  margin-top: 15px;
}

.search-results {
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

.search-column {
  width: 30%;
  height: 410px;
  overflow-y: auto;
  padding:0 10px;
}

.search-column:not(:last-child) {
  border-right: 2px solid #EBEBEB; /* 给每个列右侧添加竖线，除了最后一个 */
}

.search-column h4 {
  font-size: 14px;
  margin-bottom: 10px;
  margin-top: 10px;
  color: #545454;
}

.search-results ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.search-results li {
  background-color: #ebebeb90;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}

.search-results li:hover {
  background-color: #f1f1f1;
}

.search-results p {
  color: gray;
  font-size: 14px;
  margin-left: 10px;
}

.loading {
  padding: 10px;
  text-align: center;
  color: #007bff;
}

.search-column-icon{
  width: 20px;
  height: 20px;
  margin-right: 5px;
}